<?php
    require_once( './includes/common.inc.php' );
    $song = getSong( $_GET['song_id'] );
    $title = $song[0]['name_groups_or_artists'].' - '.$song[0]['song_name'];
    $text = $song[0]['song_text'];
    if ( $song[0]['link'] != '' )
    {
        $vars = array( 'URL' => $song[0]['link'] );
        $video = parseTemplate( 'youtube_player.tpl', $vars );
    }
    else
    {
        $video = '';
    }
    $vars = array( 'TITLE' => $title, 'TEXT' => $text, 'VIDEO' => $video );
    $content = parseTemplate( 'song.tpl', $vars );
    $vars = array( 'TITLE' => $title, 'CONTENT' => $content );
    buildLayout( $vars );
?>
